﻿<%@ control language="VB" autoeventwireup="false" inherits="controls_EdicionCliente, App_Web_vfbk0y9u" %>

<table width="650" cellpadding="0" cellspacing="0">
    <tr>
        <td style="width: 100px">
            <table id="Table2" background="Img/top_nav_back.jpg" border="0" cellpadding="0" cellspacing="0"
                width="650">
                <tr>
                    <td align="left" height="40" width="60%">
                        &nbsp;<asp:Label ID="lblIdCliente" runat="server" Font-Bold="True" ForeColor="White"></asp:Label></td>
                    <td align="right" nowrap="nowrap" width="1%">
                        <asp:LinkButton ID="btnEdit" runat="server" CssClass="navanchordark" ForeColor="white" ToolTip="Modificar datos de este cliente">Modificar</asp:LinkButton>
                        <span class="Accent">|</span>&nbsp;</td>
                    <td align="right" nowrap="nowrap" width="1%">
                        <asp:LinkButton ID="lblAddDocument" runat="server" CssClass="navanchordark" ForeColor="white" ToolTip="Agregar un nuevo documento a este cliente">Agregar Doc</asp:LinkButton>
                        &nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr id="trClEdicion" runat="server">
        <td>
<table width="650" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150px" align="left">
            Nombre:</td>
        <td width="500px">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                <td align="left" width="40%"><asp:TextBox ID="txtNombre" runat="server" Width="98%" MaxLength="35"></asp:TextBox></td>
                    <td align="right" width="20%">Apellidos&nbsp;</td>
                    <td align="right" width="40%"><asp:TextBox ID="txtApellidos" runat="server" Width="98%" MaxLength="35"></asp:TextBox></td>
                </tr>
            </table>
            </td>
    </tr>
    <tr id="ClNumevoDoc" runat="server">
        <td align="left">
            Documento:</td>
        <td>
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 100px; height: 24px;">
                        <asp:DropDownList ID="cmbTipoDoc" runat="server">
                        </asp:DropDownList></td>
                    <td style="width: 100px; height: 24px;">
                        Numero:</td>
                    <td style="width: 100px; height: 24px;">
                        <asp:TextBox ID="txtNumeroDoc" runat="server" MaxLength="20"></asp:TextBox></td>
                    <td style="width: 100px; height: 24px;">
                        Caducidad:</td>
                    <td style="width: 60px; height: 24px;">
                        <asp:TextBox ID="txtCaducidad" runat="server" MaxLength="10"></asp:TextBox></td>
                    <td id="tdGuardarND" runat="server">
                        &nbsp;<asp:ImageButton ID="cmdGuardarND" runat="server" ImageUrl="~/img/buttons/im_update.gif" ToolTip="Guarda los datos de este documento" />&nbsp;
                        </td>
                    <td id="tdCancelarND" runat="server">&nbsp;<asp:ImageButton ID="cmdCancelarND" runat="server" ImageUrl="~/img/buttons/im_cancel.gif" ToolTip="Cancela modificacion del documento" />
                        </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr id="ClListaDoc" runat="server">
        <td align="left" valign="top" id="trLeftListaDocs" runat="server">
            Documento:</td>
        <td>
        <table border="1" cellpadding="0" cellspacing="0" width="100%"><tr><td width="100%">
            <asp:GridView ID="gvDocs" runat="server" AutoGenerateColumns="False" CellPadding="0"
                ForeColor="#333333" GridLines="None" Width="100%" ShowHeader="False">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundField DataField="tdc_Tipo" HeaderText="Tipo" >
                        <ItemStyle HorizontalAlign="Left" />
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Numero">
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            Numero
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="NumeroD">
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# bind("dtd_ID") %>'
                                Text='<%# bind("dtd_Numero") %>' ToolTip='<%# "Modificar documento" %>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="CaducidadT">
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            Caducidad
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="dtd_FechaCaducidad" DataFormatString="{0:dd/MMM/yyyy}" HeaderText="Caducidad" HtmlEncode="False" >
                        <ItemStyle HorizontalAlign="Right" />
                        <HeaderStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            </td></tr></table>
        </td>
    </tr>
    <tr id="tdDireccion" runat="server">
        <td align="left">
            Calle:</td>
        <td>
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 100px">
                        <asp:TextBox ID="txtDireccion" runat="server" Width="240px" MaxLength="49"></asp:TextBox></td>
                    <td style="width: 100px">
                        Numero</td>
                    <td style="width: 100px">
                        <asp:TextBox ID="txtNumero" runat="server" Width="56px" MaxLength="10"></asp:TextBox></td>
                    <td style="width: 100px">
                        Piso/Puerta:</td>
                    <td align="right" style="width: 100px">
                        <asp:TextBox ID="txtPisoPuerta" runat="server" Width="56px" MaxLength="10"></asp:TextBox></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr id="TrCiudad" runat="server">
        <td align="left">
            Ciudad</td>
        <td>
           <table cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 100px">
                        <asp:TextBox ID="txtCiudad" runat="server" MaxLength="35"></asp:TextBox></td>
                    <td style="width: 100px">
                        Cod.Postal:</td>
                    <td style="width: 100px">
                        <asp:TextBox ID="txtCP" runat="server" Width="56px" MaxLength="8"></asp:TextBox></td>
                    <td style="width: 100px">
                        Provincia:</td>
                    <td align="right" style="width: 100px">
                        <asp:DropDownList ID="cmbProvincia" runat="server">
                        </asp:DropDownList></td>
                </tr>
            </table>
            </td>
    </tr>
    <tr>
        <td align="left">
            Telefono</td>
        <td>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="left" width="40%">
            <asp:TextBox ID="txtTelefono1" runat="server" Width="98%" MaxLength="12"></asp:TextBox></td>
                    <td align="right" width="20%">
                        Telefono</td>
                    <td align="right" width="40%">
            <asp:TextBox ID="txtTelefono2" runat="server" Width="98%" MaxLength="12"></asp:TextBox></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr  id="tdNacionalidad" runat="server">
        <td align="left">
            Nacionalidad</td>
        <td>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td align="left" width="200px">
            <asp:DropDownList ID="cmbNacionalidad" runat="server">
            </asp:DropDownList></td>
                    <td align="right" width="100px">
            Fecha nacimiento:</td>
                    <td align="left">
                        <asp:TextBox ID="txtFechaNac" runat="server" Width="98%" MaxLength="10"></asp:TextBox></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr id="tdActividad" runat="server">
        <td align="left">
            Actividad</td>
        <td>
            <asp:TextBox ID="txtActividad" runat="server" Width="99%" MaxLength="49"></asp:TextBox></td>
    </tr>
    <tr id="tdAuxiliar" runat="server">
        <td align="left">
            Auxiliar</td>
        <td>
            <asp:TextBox ID="txtAux1" runat="server" Width="99%" MaxLength="49"></asp:TextBox></td>
    </tr>
    <tr id="tdObs" runat="server">
        <td align="left">
            Observaciones</td>
        <td>
            <asp:TextBox ID="txtObs" runat="server" Width="99%" ForeColor="Red" MaxLength="99"></asp:TextBox></td>
    </tr>
    <tr id="tdButtons" runat="server">
        <td align="left">
            </td>
        <td>
            <asp:Button ID="cmdCancelar" runat="server" Text="Cancelar" CssClass="Butt" />
            <asp:Button ID="cmdAceptar" runat="server" Text="Guardar datos" CssClass="Butt" /></td>
    </tr>
</table>
        </td>
    </tr>
    <tr>
        <td align="center">
            <asp:Label ID="lblError" runat="server" BackColor="Red" ForeColor="White" Font-Bold="True" Width="100%"></asp:Label></td>
    </tr>
</table>
